package com.product.android.business.config;

import android.text.TextUtils;

import com.nd.android.u.allcommon.R;
import com.product.android.business.ProductTypeDef.Product;


public abstract class Configuration{

    
    public static  boolean  DEBUG;
    public static  boolean  ISUAPAPP;
    public static  int      TAG_ID;         //明星APP登录时用的，不知道是啥玩意儿
    public static  String   OAPSERVICEURL;  
    public static  String   OAPSERVICEURL_HTTPS;  
    public static  String   HELP_UPDATE_URL;       
    public static  String   FEED_BACK_URL;         
    public static  String   OFFICIALWEBSITE_URL;   
    public static  String   REGISTER_URL;          
    public static  String   GETPASS_URL;            
    public static  String   FLURRYKEY;             
    public static  String   PATH;
    public static  String   MYPRODUCT;             
    public static  String   SUGGESTPRODID;     
    /********************** 相册相关begin ******************************/
    public static  String   ALBUM_SERVICE_URL;     
    public static  String   ALBUMAPPNAME;
    public static  String   ALBUM_APPCODE;
    /********************** 相册相关end ******************************/      
    public static  String   DOWNLOAD_PATH;         
    public static  String   LOTTERYCODE;           
    public static  String   SECRETLOVECODE;        
    public static  String   WEBOCODE;              
    public static  String   FLOWERCODE;            
    public static  String   PAIHANGCODE;           
    public static  String   GIFTGIVERCODE;         
    public static  String   PRESEND_CODE;          
    public static  String   BIRTHDAYREMINDCODE;

    public static  String   SYSADD_LOTTER_GIFT_CODE;  //系统活动派发抽奖券通知 及 快过期物品通知
    
    public static  String   PMSAPPCODE;            
    public static  String   SUGGESTPRODNAME;       
    public static  String   ACTION_KEEPALIVE;
    public static  String   GET_ERP_KNOW_SCOPE;
    public static  String   HR_RECOGNIZE_SERVER_URL;                 
    public static  String   GET_DETAIL_URL;        
    public static  String   HR_MORE_ALBUM_THUMB_URL;   
    public static  String   TWEET_SERVER_URL;  
    public static  String   CHINAPARTNERCODE;
    public static  String   LOGIN_API_SERVICE_URL;
    //备用的IP
    public static  String  CMCCIP;
    public static  String  CUCCIP;
    public static  String  CTCCIP;
    public static  int  CMCCPORT;
    public static  int  CUCCPORT;
    public static  int  CTCCPORT;   
    
    //物品系统
    public static  String   FLOWER_SERVER_URL;
    
    //抽奖新的的地址
    public static  String   LOT_NEW_SERVER_URL;  
    
    //黑名单、暗恋、个性标签
    public static  String  OAP_NEW_SERVER_URL;
    //https的
    public static  String  OAP_NEW_HTTPS_SERVER_URL;
    public static  String  OAP_BLACKLIST_SERVER_URL;              
    public static  String  OAP_LT_SERVER_URL;  
    
    //OA服务器，云办公任务相关
    public static  String  OASERVICEURL;      //http
    public static  String  OAHTTPSSERVICEURL;    //https  
    
    public static  int  MESSAGELENG=110;
    public static  int   OAP_APPID=173;
    public static  int  MYAPPID=4988;
    public static  int  PMSAPPID=9121;
    public static  int  SECRETLOVEAPPID=1067;//暗恋系统APPID
    public static  int  TASKAPPID=1064;//任务系统APPID，包括送花、排行榜通知、礼物通知
    public static  int  CHINAPARTNERID=100003;
    public static  int  STARAPPID = 1072;   //明星app应用ID
    
    public static int LOGIN_TYPE;
    //是否是公众号
    public static boolean ISEXITPSP; 
    

    /***********************各产品差异点  begin***************************/
    //产品类型
    public static  Product  PRODUCT;
    //默认单位id
    public static  int      DEFAULTUNITID;
    //通知栏图标id
    public static  int      NOTIFICATION_ICON;
    //默认头像
    public static  int      DEFAULTFACEIMAGE = R.drawable.face_default;
    /***********************各产品差异点 end  ***************************/
    public static  String  V2_API_SERVICE_URL;

    // 微博服务端用
    public static String WEIBO_APP_KEY; 
    public static String WEIBO_APP_SECRET;
    public static String WEIBO_SINA_API_KEY;

    public static String CLOUNDID;// 明星APP服务端统计用，其他应用暂时没说用，需要时，自己赋值
    
    //是否使用默认的外部文件目录:/mnt/sdcard/Android/data/xxx(当前应用的包名)/files/xxx(CommonConfig.PATH里的配置)/当前用户名(当前用户UID)/
    //由于原来91都是直接把文件写在SD卡的根目录下面，导致文件卸载的时候还有残留文件，
    //为了避免旧的项目的文件目录发生变化导致不可预知的异常，同时新的项目可以使用新的目录，加入以下参数
    //所有的新的项目的这个值都应该是true，在相应的config类里配置
    public static boolean IS_EXTERNAL_FILE_DIR;
    //FIR 临时增加的兼容代码，需要在代码稳定之后删除
    public static boolean IS_OLD_LOGIN=true;
    
	public static class APPID{
		public static final int ERP=11;
	}
    
    public static final String TempDir = "temp";
	public static char separatorChar = System
			.getProperty("file.separator", "/").charAt(0);
	
	public static String getAlbumServiceUrl(){
	    return ALBUM_SERVICE_URL;
	}
	
	public static String  getOAPServiceUrl(){
	    return OAPSERVICEURL;
	}
	public static String  getHttpsOAPServiceUrl(){
	    //没有配置https就用http，不然集美登录不了
	    if(!TextUtils.isEmpty(OAPSERVICEURL_HTTPS)){
	        return OAPSERVICEURL_HTTPS;
	    }
	    return OAPSERVICEURL;
	}
	
	public static String  getOAServiceUrl(){
	    return OASERVICEURL;
	}
	
	public static String getTweetServerURL(){
	    return TWEET_SERVER_URL;
	}
	
	//鲜花接口
	public static String getFlowerServerUrl(){
	    return FLOWER_SERVER_URL;
	}
	
	//oap新的地址
	public static String getOapNewServerUrl(){
	    return OAP_NEW_SERVER_URL;
	}
	/**
	 * oap新的支持https地址
	 * 
	 * <br>Created 2014-9-25 上午10:03:23
	 * @return
	 * @author       jiaoyun
	 */
	public static String getOapNewHttpsServerUrl() {
		return OAP_NEW_SERVER_URL;
	}
	
	//抽奖新的的地址
	public static String getLotNewServerUrl(){
	    return LOT_NEW_SERVER_URL;
	}
	
	//好友相关业务（黑名单）
	public static String getOapBlackListServerUrl(){
	    return OAP_BLACKLIST_SERVER_URL;
	}
	
	//好友相关业务（暗恋、个性标签）
	public static String getOapLoveAndTagServerUrl(){
	    return OAP_LT_SERVER_URL;
	}
	
	public static String getHRRecognizeServerURL(){
	    return HR_RECOGNIZE_SERVER_URL;
	}
	
	public static String  getLoginApiServiceUrl(){
	    return LOGIN_API_SERVICE_URL;
	}

}